﻿@model KPIS.GERP.Models.ICM.Dispose
@using KPIS.GERP.Models.ICM

@{
    
    var service = new KPIS.GERP.WEB.GIMS.DisposeService.DisposeServiceClient();
    var JobsiteSelectList = service.SelectListJobsite();
    var WarehouseSelectList = service.SelectListWarehouse();
    var ParcelTypeSelectList = service.SelectListResourceType();
    var DisposeTypeSelectList = service.SelectListDisposeType(KPIS.GERP.Models.ICM.IcmMasLookUpType.LookUpType.DisposeType);
}

<div class="widget-box span11">
	<div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">รายละเอียดการจำหน่าย</h4>
    </div>
	<div class="widget-body">
		<div class="widget-body-inner">
			<div class="widget-main">

                <div class="form-horizontal">

				<div class="control-group">
					<div class="control-label">
					    วันที่ทำรายการ : 
					</div>
					<div class="controls">                          
                        @Html.EditorFor(model => model.DisposeDate)         
                        @Html.ValidationMessageFor(model => model.DisposeDate)      
					</div>                              
				</div>

                <div class="control-group">
					<div class="control-label ">
					    เรื่อง : 
					</div>
					<div class="controls"> 
                        @Html.EditorFor(model => model.DisposeDesc)
                        @Html.ValidationMessageFor(model => model.DisposeDesc)
					</div>                              
				</div>

                <div class="control-group">
					<div class="control-label ">
					    ประเภทพัสดุ : 
					</div>
					<div class="controls">   
                        @Html.DropDownListFor(model => model.ResTypeId, ParcelTypeSelectList, new { id="ddlParcelType", @class = "chzn-select input-xlarge" })                    
					</div>                              
				</div>

                <div class="control-group">
					<div class="control-label ">
					    ประเภทรายการ : 
					</div>
					<div class="controls">                          
                        @Html.DropDownListFor(model => model.DisposeTypeId, DisposeTypeSelectList, new { id="ddlDisposeType", @class = "chzn-select input-xlarge" })                    
					</div>                              
				</div>
                
                <div class="control-group">
					<div class="control-label ">
					    วิธีการจำหน่าย : 
					</div>                          
                      
                        <div class="controls"><span class="lbl"><b>สถานที่ต้นทาง</b></span>&nbsp&nbsp&nbsp&nbsp&nbsp
                            @Html.RadioButton("radioF","FWh", true)<span class="lbl"><b>จากคลัง</b></span>
                                <span id="FromWarehouse"><b> : </b>
                                    @Html.DropDownListFor(model => model.FromIcmWhId, WarehouseSelectList, new { id="ddlWarehouse", @class = "chzn-select input-xlarge", data_placeholder = "เลือกคลัง..." })                                    
                                </span>&nbsp&nbsp&nbsp&nbsp&nbsp 
                              
                            @Html.RadioButton("radioF","FJobsite")<span class="lbl"><b>จากหน่วยงาน</b></span>
                                <span id="FromJobsite"><b> : </b>
                                    @Html.DropDownListFor(model => model.FromJobsiteId, JobsiteSelectList, new { id="ddlJobsite", @class = "chzn-select input-xlarge", data_placeholder = "เลือกหน่วยงาน..." })
                                </span>&nbsp&nbsp&nbsp&nbsp&nbsp  
                            
                            @Html.RadioButton("radioF","FOtherPlace")<span class="lbl"><b>จากสถานที่อื่น</b></span>
                                <span id="FromOtherPlace"><b> : </b>@Html.TextBoxFor(model => model.FromOtherPlace, new { id="FOtherPlace"} )</span>                                 
                        </div>

                        <br />

                        <div class="controls"><span class="lbl"><b>สถานที่ปลายทาง</b></span>&nbsp&nbsp
                            @Html.RadioButton("radioT","TJobsite", true)<span class="lbl"><b>ไปหน่วยงานอื่น</b>
                                <span id="ToJobsite"><b> : </b>@Html.TextBoxFor(model => model.ToOtherSite, new { id="TOtherJobsite"} )</span>
                            </span>&nbsp&nbsp&nbsp&nbsp&nbsp   
                            @Html.RadioButton("radioT","TOtherPlace")<span class="lbl"><b>ไปสถานที่อื่น</b>
                                <span id="ToOtherPlace"><b> : </b>@Html.TextBoxFor(model => model.ToOtherPlace, new { id="TOtherPlace"} )</span>
                            </span>
                        </div>
                           
				</div>

                <div class="control-group">
					<div class="control-label ">
					    หมายเหตุ : 
					</div>
					<div class="controls">                          
                        @Html.TextAreaFor(model => model.Remark)                   
					</div>                              
				</div>


                </div>

            </div>
        </div>
    </div>
</div>